import request from '@/utils/request'
import { makeRequestJson } from '@/utils/common'

export function orderLog(query, responseType) {
  for (const key in query) {
    if (query[key] === '') {
      query[key] = undefined
    }
  }
  return request(makeRequestJson('post', '/log/order', query, responseType))
}

export function userLog(query, responseType) {
  for (const key in query) {
    if (query[key] === '') {
      query[key] = undefined
    }
  }
  return request(makeRequestJson('post', '/log/user', query, responseType))
}

export function stockLog(query, responseType) {
  for (const key in query) {
    if (query[key] === '') {
      query[key] = undefined
    }
  }
  return request(makeRequestJson('post', '/log/stock', query, responseType))
}

export function lineLog(query, responseType) {
  for (const key in query) {
    if (query[key] === '') {
      query[key] = undefined
    }
  }
  return request(makeRequestJson('post', '/log/line', query, responseType))
}


